<?php


class NavVerticalHelper extends AppHelper {
	public $helpers = array('Html');

	public function nav_vertical(){
			$nav_vertical =	"<div class='navbar navbar-inverse navbar-fixed-top'>
	    	<div class='navbar-inner'>
	        	<nav class='container'>
	            	<nav class='nav-collapse collapse'>
	             	<ul class='nav'>" .
	             		$this->nav_link() .
	             		$this->nav_html() .
	             		$this->nav_algoritmos() .
	             		$this->nav_php() .
	             		$this->nav_oo()
	             	."</ul>
	            	</nav>
	        	</nav>
	    	</div>
		</div>";
		return $nav_vertical;

	}

	public function nav_link(){
		    $link_nav = "<li>" . $this->Html->link('Home','/p/home') . "</li>";

    		return $link_nav;
	}

	public function nav_php(){
    $php = "<li class='dropdown'>
        <a href='#'' class='dropdown-toggle' data-toggle='dropdown'>PHP <b class='caret'></b></a>
        <ul class='dropdown-menu'>
            <li>" . $this->Html->link('Introdução PHP', '/p/php/introducao_php') . "</li>
            <li>" . $this->Html->link('Instalando PHP', '/p/php/preparando_ambiente_php') . "</li>
            <li>" . $this->Html->link('Conceitos PHP', '/p/php/conceitos_basicos') . "</li>
        </ul>
    </li>";                
 	return $php; 
	}

	public function nav_html(){
    $html = "<li class='dropdown'>
                <a href='#' class='dropdown-toggle' data-toggle='dropdown'>HTML <b class='caret'></b></a>
                <ul class='dropdown-menu'>                    
                    <li>" . $this->Html->link('Introdução HTML','/p/html/html') . "</li>
                </ul>
            </li>";
    return $html;
	}

	public function nav_algoritmos(){
	$algoritmos = 	"<li class='dropdown'>
        				<a href='#'' class='dropdown-toggle' data-toggle='dropdown'>Algoritmos <b class='caret'></b></a>
        				<ul class='dropdown-menu'>
            				<li>" . $this->Html->link('Introdução Algoritmo', '/p/algoritmos/introducao') . "</li>
        				</ul>
    				</li>";
    return $algoritmos;
	}

	public function nav_oo(){
	$oo = "<li class='dropdown'>
        		<a href='#'' class='dropdown-toggle' data-toggle='dropdown'>Orientação Objetos <b class='caret'></b></a>
        		<ul class='dropdown-menu'>
            		<li>" . 
            		$this->Html->link('Conceitos Orientação Objetos', '/p/orientacao_objetos/introducao_orientacao_objetos') 
            		. "</li>
        		</ul>
    		</li>";
    return $oo;
	}

}